asp.net - How to Decode the Encoded value? -


now looking after friend's project. in project friend encoded value , store in database. need use values. so, have decode them. don't know start it...can me.

given encoding method :

    string strmsg = string.empty;     byte[] encode = new byte[text.length];     encode = encoding.utf8.getbytes(text);     strmsg = convert.tobase64string(encode); 

text string encoded here.

note : need decode "strmsg" value.

this should decode strmsg text.

     byte[] decode = convert.frombase64string(strmsg); //strmsg encoded text     strmsg  = encoding.utf8.getstring(decode); //this strmsg decoded original text 

Comments

Popular posts from this blog

javascript - JS causing window size to be bigger than necessary - Dropdown bug -

php - Calling a template part from a post -

How to mention the localhost in android -