Supprimer 'src/Api/src/controller/spotify-controller/crypt.ts'
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
de91a054da
commit
d95c34a8b4
@ -1,19 +0,0 @@
|
|||||||
export default class CryptString{
|
|
||||||
|
|
||||||
stringCrypt: string;
|
|
||||||
|
|
||||||
constructor(length : number){
|
|
||||||
this.stringCrypt = this.generateRandomString(length);
|
|
||||||
}
|
|
||||||
generateRandomString (length : number){
|
|
||||||
let text = '';
|
|
||||||
const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
||||||
|
|
||||||
for (let i = 0; i < length; i++) {
|
|
||||||
text += possible.charAt(Math.floor(Math.random() * possible.length));
|
|
||||||
}
|
|
||||||
return text;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in new issue