3

Hi! โœŒ๏ธ I need to generate some string in C++ with random characters that can use all letters from "a" to "z" (include capital letters), and all numbers from 0 to 9 there.

And for examples this should looks somehow like this:

SnHXAsOC5XDYLgiKM5ly

Also I want to encrypt that string then by itself:

SnHXAsOC5XDYLgiKM5ly encrypt with SnHXAsOC5XDYLgiKM5ly key.

So, how can I do this in C++? ๐Ÿค”

Thanks in advance!

you are viewing a single comment's thread
view the rest of the comments
[-] bunitor@lemmy.eco.br 4 points 1 week ago

you can do this in pretty much any language. have you tried anything and need help or you're just asking us to do your homework for you?

[-] xolatgames@programming.dev 1 points 1 week ago
[-] bunitor@lemmy.eco.br 2 points 1 week ago

honest advice: it's fine to ask for help online, but not putting any effort into solving your own problems before you do is disrespectful

[-] xolatgames@programming.dev 1 points 1 week ago

I think that doesn't respectful to stay in this community for myself. Have a nice day! โœŒ๐Ÿผ

load more comments (1 replies)
this post was submitted on 29 Jun 2025
3 points (100.0% liked)

C++

2054 readers
2 users here now

The center for all discussion and news regarding C++.

Rules

founded 2 years ago
MODERATORS