Jump to content

Encrypting Registry Keys


 Share

Recommended Posts

$StringOriginal="My string"

$EncString=_StringEncrypt($String,....); Encrypt here :)

RegWrite(....$EncString)

............

$EncRegString=RegRead(....)

$StringRead=_StringEncrypt($EncRegString...); Decrypt here ^_^

Link to comment
Share on other sites

Make sure the encryption level is the same on both encrypt and decrypt.

#include <String.au3>
;String to encrypt
$inString = "Oh my god it's a mirage, i'm tellin ya'll it's sabotage!"
$encrypted = _StringEncrypt (1, $inString, "2girls1cup", 2)
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "EncryptionTest", "REG_SZ",$encrypted)
ConsoleWrite($encrypted & @CRLF)

;Decrypted string
$encrypted = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "EncryptionTest")
$decrypted = _StringEncrypt (0, $encrypted, "2girls1cup", 2)
ConsoleWrite($decrypted & @CRLF)
Link to comment
Share on other sites

Make sure the encryption level is the same on both encrypt and decrypt.

#include <String.au3>
;String to encrypt
$inString = "Oh my god it's a mirage, i'm tellin ya'll it's sabotage!"
$encrypted = _StringEncrypt (1, $inString, "2girls1cup", 2)
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "EncryptionTest", "REG_SZ",$encrypted)
ConsoleWrite($encrypted & @CRLF)

;Decrypted string
$encrypted = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\AutoIt v3\AutoIt", "EncryptionTest")
$decrypted = _StringEncrypt (0, $encrypted, "2girls1cup", 2)
ConsoleWrite($decrypted & @CRLF)
gracias
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...