Here you can find the source of decryptEmailId(String encryptedEmailId)
Parameter | Description |
---|---|
emailId | a parameter |
public static String decryptEmailId(String encryptedEmailId)
//package com.java2s; //License from project: Apache License public class Main { private static final int M_FACTOR = 3; private static final int S_FACTOR = 7; /**//from w w w . j a va2s. co m * Method to decrypt email id * @param emailId * @return decrypted email id */ public static String decryptEmailId(String encryptedEmailId) { char[] letters = encryptedEmailId.toCharArray(); StringBuilder decriptedEmailId = new StringBuilder(); for (int index = 0; index < letters.length; index++) { int code = letters[index]; decriptedEmailId.append((char) ((code + S_FACTOR) / M_FACTOR)); } return decriptedEmailId.toString(); } }