Security
jqa0401.txt
Associated article: Java Q&A
Tags: Web Development Security Tools Design
Published source code accompanying the article by David Wincelberg in which he uses the javax.crypto package to adds security to Java-based e-commerce systems by encrypting/decrypting user's credit-card numbers. Also see JQA0401.ZIP.
Java Q&A
by David Wincelberg
Listing One
public class CCNumber {
public static String removeSpaces (String ccNum) {
if (ccNum == null) return "";
int length = ccNum.length();
StringBuffer sbuf = new StringBuffer();
char c;
for (int i = 0; i < length; ...


