Hello

I need to insert an string that contain "special" characters in a bytea 
field in a PostgreSQL table with the SQL Plugin.

This string is the result of a cypher with Einhugur E-Cryptit plugin.

I need to store an encrypted string in a field, but i've been unable to 
do it.

I guesses i could do it with a DatabaseRecord object, but SQL plugin 
doesn't support insert it with PostgreSQL.

Can anyone help me with this?

This is the code that creates the string (CypheredString) i want to 
record in the database

      Dim CypheredString, StringToCypher, PasswordBF As String
      Dim bf As BlowfishCBC

      PasswordBF = "This is a very secret password"

      bf=new BlowfishCBC(PasswordBF)

      // Add 7 bytes to the string to make it not divisible by 8
      // Better if this is random

      StringToCypher="This is the string to cypher"+"1234567"

      CypheredString=bf.Encrypt(StringToCypher)+bf.FinishEncrypt()

Thanks!
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
[email protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to