i am doing a project in which i simulate symmetric encryption in routers.so hav to store secret keys for mac encryption in a symmetric matrix.how do i do it?????????should i convert them to strings and then store strings in a matrix???????
okay,there is a SecretKey class in javax.crypto,i want to store a 2-D array of such keys,
like i want to declare "SecretKey key" so that key[j]=key[j] therefore the key between router-i and router-j is the same and i can perform symmetric encryption.
lets say i hav a list of routers from 0 to 7(8 routers),in a 2-D array of size 8X8 i store SecretKey's.I use symmetric encripton so if i am sending a packet from router-i to router-j at router-i i use secretkey[j] to perform encryption at router-j i perform decryption by using secretkey[j].