• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

string to be used as secret key

 
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I'm trying to create a secret key string for my mac. I have 2 questions:
1. will there be a problem if I include chinese, japanese, cyrillic characters in the secret key string?
2. what's the best length for the secret key?

Thanks
 
Saloon Keeper
Posts: 27812
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In theory, a key can be any sequence of binary characters, since encryption is usually done using octets. Specific encryption/decryption software may not be as flexible, however. What mechanisms are you planning to use?
 
David Spades
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
still doing some research, but most likely hmac sha256. also, is it safe to have one secret key per application as opposed to 1 secret key per user? and how often should I change the secret key? or can I use the same secret key forever? thanks
reply
    Bookmark Topic Watch Topic
  • New Topic