Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8562459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:44:05+00:00 2026-06-11T16:44:05+00:00

I am working on an obfuscation mechanism using F#. I wrote the same thing

  • 0

I am working on an obfuscation mechanism using F#.

I wrote the same thing using C# before a few months as follows:

public void testobfusc(string file)
{
    AssemblyDefinition assembly = AssemblyDefinition.ReadAssembly(file);
    ModuleDefinition module = assembly.MainModule;
    foreach (TypeDefinition type in module.Types)
    {
        type.Name = "Yaobfuscatethis"; // Maybe I should use random function here
     }
 }

Now, I’m trying to write the same thing in F#. First, I reference Mono.Cecil and then write:

open Mono.Cecil

let obfus(file:string)=
    use asm = AssemblyDefinition.ReadAssembly(file)
    let ModuleDefinition = asm.MainModule
    TypeDefinition(asm.MainModule.Types)
    t.Name = ""

.. but this code does not work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:44:06+00:00Added an answer on June 11, 2026 at 4:44 pm

    Translated (not tested):

    let testobfusc (file:string) = 
        let assembly = AssemblyDefinition.ReadAssembly(file)
        let ``module`` = assembly.MainModule
        ``module``.Types |> Seq.iter (fun t -> t.Name <- "Yaobfuscatethis")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

...working on a primitive RSA (public/private key) based copy protection mechanism for our software.
Working on a small game using an HTML5 canvas, and javascript. And it's working
Working with MS Access for the first time and coming across a few problems
Working on a project using Entity Framework (4.3.1.0). I'm trying to figure out how
I'm working on an x86 asm obfuscator that takes Intel-syntax code as a string
Working sample using one Table SELECT t.* FROM ( SELECT TITLE.name, (TITLE.value-TITLE.msp) AS Lower,
working on using a formula ive been using for a while to find distances
working on xcode I realized that if I create a non-void method, I call
Working on an app using Akka 2 deployed with Play-mini. I pulled logback into
I'm working on a C# obfuscation program, and I'm wondering if there are method

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.