Posts

Showing posts with the label vault based

Featured Post

Python map() and lambda() Use Cases and Examples

Image
 In Python, map() and lambda functions are often used together for functional programming. Here are some examples to illustrate how they work. Python map and lambda top use cases 1. Using map() with lambda The map() function applies a given function to all items in an iterable (like a list) and returns a map object (which can be converted to a list). Example: Doubling Numbers numbers = [ 1 , 2 , 3 , 4 , 5 ] doubled = list ( map ( lambda x: x * 2 , numbers)) print (doubled) # Output: [2, 4, 6, 8, 10] 2. Using map() to Convert Data Types Example: Converting Strings to Integers string_numbers = [ "1" , "2" , "3" , "4" , "5" ] integers = list ( map ( lambda x: int (x), string_numbers)) print (integers) # Output: [1, 2, 3, 4, 5] 3. Using map() with Multiple Iterables You can also use map() with more than one iterable. The lambda function can take multiple arguments. Example: Adding Two Lists Element-wise list1 = [ 1 , 2 , 3 ]

Tokenization: Vault based Vs Vault-less

Image
Tokenization means generating a random number as an alternative for a Credit card (PAN) number. The random number can be Numeric/Non-numeric. It is in such a format that others cannot decode it.    *** The popular tokenization server is the Vault server. It generates a random Token for each transaction customer made at Merchant outlets. You can find how card numbers are masked with junk characters in the pdf provided. Here is the  Visa Security Tokenization Pdf. Two Top Tokenization Servers. Vault based server Vault-less server What is Tokenization? 1. Vault based server It stores a  Card number (PAN) and a Token  in a Table of the Teradata database as Key and value pairs. Due to the growing volume of transactions, the handling of the database became a big challenge for acquirers.  For each transaction, the vault server stores a record. That row contains both the Credit card number and its Token. When you use the same card multiple times, it generates different Tokens.  It is