开发者

tomcat JNDI 128-bit encryption

Most of the sample I fo开发者_JS百科und online is Base64 encoding, not really encryption for the username password for database access. Our requirement is those info can't be store in clear text and has to be in 128-bit encryption. We do have DSN setup since this database will be accessed from a .NET application as well. Worst case I can use JDBC-ODBC bridge even though it's not recommended approach by Sun.

Does anyone have any experience on how to encypt the username / password into 128-bit?

Thanks!


Base64 isn't encryption, it's encoding - and almost as insecure as plain text.

For encryption, maybe look at the BouncyCastle APIs.

However, there shouldn't really be any need to decrypt a password - it's far better to use one-way hashing (MD5, SHA-1 etc).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜