, BouncyCastle # API. , POC, , , , CF-.
, : Strong Encryption ColdFusion, , ColdFusion ECB PKCS5Padding. , Blowfish, , Blowfish/ECB/PKCS5Padding. # ( ), .
, #, , BlowfishEngine ECB. , PaddedBufferedBlockCipher, PKCS5 . , CF-:
byte[] inputBytes = System.Text.Encoding.UTF8.GetBytes(userIDString);
byte[] keyBytes = System.Convert.FromBase64String(keyInBase64);
PaddedBufferedBlockCipher cipher = new PaddedBufferedBlockCipher(new BlowfishEngine());
KeyParameter param = new KeyParameter(keyBytes);
cipher.Init(true, param);
byte[] encryptedBytes = cipher.DoFinal(inputBytes);
string idBase64 = System.Convert.ToBase64String(encryptedBytes);
NB: , , "ECB" . . wiki . .