• Post Reply Bookmark Topic Watch Topic
  • New Topic

hashing and base 64 in java  RSS feed

 
prakash gangadhara
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am developing a search functionality based on CC number search, I need to search based on hashed version of the credit card number to know how many rows will be returned for a particular CC,

Due to security reasons, hashing will be done,

Base 64 also used here, I need to search based on hashed version only.

Any body help me with code snippets or some code samples to do this.

prakash
 
David Harkness
Ranch Hand
Posts: 1646
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See this thread for code that creates the MD5 hash and sun.misc.sun.misc.BASE64Encoder for encoding, though there are public domain en/decoders [url=http://iharder.sourceforge.net/xmlizable/
http://iharder.sourceforge.net/xmlizable/]available[/url].
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!