Один из самых удобных способов записать данные это использование готовых форматов, такие как JSON или YAML.
Из плюсов такого подхода стоит отметить вот что:
🔸 готовый, повсеместно используемый и поддерживаемый формат
🔸 простой и понятный файл, удобочитаемый для человека
🔸 можно легко редактировать в любом текстовом редакторе без специальных программ и библиотек
Но есть и минусы
🔹 затраты времени при записи файла (кодирование данных в нужный формат строки)
🔹 затраты времени при чтении файла (декодирование данных в Python объекты)
🔹 размер файла увеличивается из-за разметки данных (скобки, запятые, переносы, отступы...)
🔹 перед записью все данные должны быть помещены в память в полном объёме (не всегда)
🔹 при чтении необходимо считать весь файл в память и только потом декодировать данные
Если нужно писать немного данных в несколько файлов, то затраты по времени не ощутимы. Обычно это файлы конфига или какие-либо метаданные. Это отличный вариант под такие задачи.
Есть и другой поход к записи файлов - это бинарные файлы. Используется, когда данных достаточно много и никто их не собирается читать глазками😳.
🔸 очень быстрая запись
🔸 чтение значительно быстрей чем JSON, YAML итд
🔸 размер файла значительно меньше, так как нет разметки
🔸 можно записывать данные по мере поступления не загружая всё в память
🔸 можно извлечь любую часть данных независимо
Из минусов
🔹 нужно определить свой формат записи данных (если не используете готовую спецификацию определённого формата)
🔹 не получится открыть файл и визуально понять что там записано, а для чтения файла потребуется знать его спецификацию.
🔹 не так-то просто создать такой файл без специальной библиотеки
В таком виде удобно записывать большой массив любых однородных данных. Например, мониторинг валютной биржи или кэшированная анимация 3D геометрии.
(Это не означает что нельзя записать данные разного типа, просто это будет не так удобно)
Представьте себе JPG-картинку. По сути это немного мета-информации и большой массив пикселей. Тоже самое со звуком или видео файлом. Поэтому, если вы попробуете открыть картинку в текстовом редакторе вы увидите что-то вроде такого
f15d cd29 a564 4578 ...
09e2 9bc4 a696 1253 ...
84e9 4de1 3b23 c24a ...
2534 5161 28e0 709d ...
...
Это и есть записанные байтики. И для их чтения требуется определённый софт который знает что с ними делать. Под каждый тип файла.
К чему это я? Читайте в следующем посте...
#tricks#basic
🌐Global Consensus Emerges on AI Data Security Standards
Four leading cybersecurity agencies — from the U.S., U.K., Australia, and New Zealand — have jointly released best practice guidance for securing data across AI system lifecycles. The focus: ensuring integrity, traceability, and resilience in AI training and deployment environments.
The document recommends practical safeguards such as digital signatures for trusted dataset revisions, provenance tracking, and the use of secure infrastructure. It also emphasizes proactive risk mitigation, calling for robust data protection strategies not just at the point of deployment, but from the earliest stages of model development.
#AI#DataSecurity#AIgovernance
Privacy at Stake: LegalShield Faces Lawsuit Over AI-Driven Call Interceptions
LegalShield, a prominent online legal services provider, is under fire as a class action lawsuit accuses the company of secretly intercepting and analyzing confidential client communications. The lawsuit claims that LegalShield failed to inform customers that their interactions would be routed through Talkdesk, a call center technology provider, which uses AI to listen, record, and analyze every word in real-time.
Talkdesk allegedly utilizes this intercepted data not just for enhancing customer service but also for its own purposes, including developing AI models. The lawsuit highlights the sensitive nature of the information at risk, such as credit card details and Social Security numbers, and suggests that clients would have refrained from engaging with LegalShield had they known about these practices.
This case underscores the growing concerns over privacy and the ethical use of AI in customer interactions, particularly in industries where confidentiality is paramount.
#AI#Privacy#DataSecurity#LegalTech
Give your e-waste a second life by recycling them this International E-waste Day 📱💻♻️
Find out more about how to recycle your e-waste at go.gov.sg/e-waste
Let’s also reduce the amount of e-waste generated by:
- Considering if you really need to buy new a product or if the current one can be repaired
- Choosing second-hand products over new products
- Donating devices that are in good condition to those who could put them to better use
#RecycleRight#RecycleOurEWaste#IEWD2024#InternationalEWasteDay2024#DataSecurity
Are your favorite Apps invading your privacy? Let's find out!
Artificial Intelligence has become a hot topic, raising questions about its impact on user privacy. Are AI apps really intruding on our personal data? A recent investigation by Home Security Heroes (HSH) reveals some eye-opening findings.
By examining various AI applications, HSH has uncovered the extent of data intrusion facilitated by AI technology. To determine the invasiveness of AI apps, HSH used the privacy labels available on the App Store. These labels reveal the amount of personal information an app tracks for marketing purposes. They evaluated a total of 159 apps.
Key Insights:
1️⃣ 75% of AI apps share users' data with third parties.
2️⃣ 64% of investigated AI-powered apps track users' personal data for their own marketing benefits.
The Most Invasive AI Apps:
🔹 Tracking 43% of personal data:
Brainly
Photoleap: AI Art Photo Editor
🔹 Tracking 36% of personal data:
Google Assistant
Socratic by Google
DaVinci – AI Generated Art
Facetune AI Photo/Video Editor
How comfortable are you with AI apps tracking and sharing your personal data? Are the benefits worth the potential risks to your privacy?
#AI#Privacy#DataSecurity#UserProtection#AIApps
🚀 AI TRENDS | U.S. Officials Convene Wall Street Leaders Over AI Cybersecurity Concerns
U.S. Treasury Secretary Scott Bessent and Federal Reserve Chair Jerome Powell have called an urgent meeting with Wall Street leaders to address concerns about the potential cybersecurity risks posed by the latest AI model from Anthropic. Bloomberg posted on X, highlighting the growing apprehension among financial regulators regarding the implications of advanced AI technologies on the security of financial systems.
The meeting underscores the increasing focus on AI's role in cybersecurity, as financial institutions grapple with the challenges of integrating cutting-edge technologies while safeguarding sensitive data. The Anthropic AI model, known for its advanced capabilities, has raised alarms about its potential misuse in cyberattacks, prompting federal officials to seek input from industry leaders on mitigating these risks.
This development comes amid a broader dialogue on the balance between technological innovation and security, as AI continues to transform various sectors. The discussions are expected to explore strategies for enhancing cybersecurity measures and ensuring that AI advancements do not compromise the integrity of financial systems.
#AI#Cybersecurity#WallStreet#Finance#Anthropic#USOfficials#Technology#Innovation#DataSecurity#FinancialRegulation
🚀 Telegram CEO Criticizes WhatsApp's Encryption Practices
Telegram CEO Pavel Durov has criticized WhatsApp's end-to-end encryption, labeling it as a 'massive consumer fraud.' According to ChainCatcher, Durov highlighted that approximately 95% of private messages are stored in unencrypted backups on Apple and Google servers.
Durov expressed concerns that this situation poses a risk to user privacy. Despite WhatsApp's claims of using end-to-end encryption for message transmission, the backup mechanism fails to ensure complete encryption of user information. His remarks have sparked industry attention regarding privacy protection measures in mainstream communication applications.
#Telegram#WhatsApp#Encryption#Privacy#DataSecurity#PavelDurov#CyberSecurity#MessagingApps#TechNews#EndToEndEncryption
🔐 Is Your Data Secure? 🔐
🫰 Discover peace of mind with #Cloudatabox – the #future of #secure, #decentralized storage powered by innovative #Web3 solutions! 🌐✨
🚀Register Now to explore how Cloudatabox keeps your data protected and accessible like never before. 📂🔒
Secure your future, secure your data!
#Cloudatabox#DataSecurity#Web3Solutions#DecentralizedStorage#RegisterToday#FutureOfStorage
🚀 Heart South Reports Potential Data Breach Affecting Thousands
Heart South has announced that approximately 46,666 individuals may have been affected by a data breach, with patient information from its network appearing on the dark web. According to NS3.AI, the company has been unable to verify if any specific individual's data was compromised. Notifications regarding the potential breach began being distributed in April 2026.
#HeartSouth#databreach#patientdata#darkweb#NS3AI#privacy#cybersecurity#datasecurity#breachnotification#April2026
🚀 Pavel Durov Highlights Privacy Risks of Push Notifications
Pavel Durov has raised concerns about the privacy implications of push notifications. According to NS3.AI, Durov pointed out that message data can persist in notification logs, posing a privacy risk even after messages or apps are deleted. He referenced a report by 404 Media, which revealed that the FBI was able to retrieve deleted Signal messages from an Apple iPhone by accessing these notification logs.
#PavelDurov#Privacy#PushNotifications#DataSecurity#Signal#iPhone#FBI#DigitalPrivacy#NotificationLogs#CyberSecurity