Re: --really newbie-- most frequent character



It depends on the way the keys are handled. For example using a
symetrical encryption algorithm
using XOR can be really hard to break if only the two people
communicating are using the key and
the key is long enough. The key elements have to be applied in sequence
on the original sequence.
This means that if you have the same character on a number of positions,
chances that it will show
up with the same substitution are slim. There's really no way of
breaking the code using the method
you are trying to use.

Fred L. Kleinschmidt wrote:
>
> Gin wrote:
>
>>Hi everyone,
>>
>>I struggling with java here. Can anyone tell me how to pick up the most
>>frequent character in a string?
>>I've browsed the API but I am just lost.
>>
>>What I intend to do is decrypt a string without a code given? Like
>>there's a most frequent letter in english which is 'e' so i want to
>>pick the most frequent letter from the encrypted string and assign it
>>'e'.
>>
>>A bit messy, but I hope you get the idea.
>>
>>Thank you so much!
>
>
> I hope you realize that only the most naive encryption methods use a
> simple letter substitution scheme. Essentially every encryption method
> in use today is quite different than that. For example, the encryption
> of the string "aaaaa" will probably not be 5 characters long; it is more
> likely to be something like "zyQ:5jnW7Wm"
>
.



Relevant Pages

  • Re: Byte array to string and back - newbie question
    ... // Create a symmetric algorithm. ... This is done to make encryption more ... // Encrypt a string into a string using a password ... // Decrypt a byte array into a byte array using a key and an IV ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Using Python To Create An Encrypted Container
    ... an encrypted archive utility designed for secure archiving ... A match string allows you to only extract files matching a given ... Encrypt the string s using passwd and encryption cipher enc ...
    (comp.lang.python)
  • Re: How good an encryption algorithm is this?
    ... As long as the string can be converted to/from a byte stream, ... then you can apply that after the encryption. ... > So I decided to invent my own algorithm, and I just wanted anybody's> opinion on how secure this could be compared to the Win32 API version. ... > HCRYPTHASH hCryptHash; ...
    (microsoft.public.vc.language)
  • Length of the data to decrypt is invalid
    ... I found this code on a site for doing string encryption/decryption. ... // Create a symmetric algorithm. ... // This is done to make encryption more secure. ... // This will tell it that we have done our decryption ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Web app security
    ... public static string EncryptToBase64String(string stringToEncrypt, ... we'd also like to move on to better encryption such ... to make the.NET AES encryption to work together with the AES encryption ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.aspnet)