login about faq

Hello. I was just wondering if it is advisable to use std::string instead of const char * in the many encryption code examples.

For example, in the SHA-1 hash alogorithm code (http://www.example-code.com/vcpp/crypt_hash_algorithms.asp) what effect would using strings instead of const char * have?

I'm new to C++ and encryption so patience please if the answer is blindingly obvious :D

asked Mar 12 '13 at 14:46

Druss's gravatar image


Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 12 '13 at 14:46

Seen: 9,102 times

Last updated: Mar 12 '13 at 14:46

powered by OSQA